#include <stdio.h>
#include "global/sha1.h"
#include "global/misc.h"
#include "stdlib.h"
#include "exhaustive_search/rule.h"
#include "exhaustive_search/dictionary.h"
#include "global/global_declarations.h"

/*
 * @ - sensitive word from dictionary
 * # - insensitive word from dictionary
 * &n - sequence of n digits
 * $n - sequence of n characters
 */

char* rule_example = "#&1|$1@|@@&3";


int main(int argc, char* argv[]) {
	String* r;
	int size;
	r = make_empty_string();
	String_copy(r, argv[1]);
	the_rule = make_rule_list_from_string(*r);
	the_dictionary = create_dictionary_from_file(argv[2]);
	size = count_words_in_whole_rule(the_rule, the_dictionary);
	printf("rule size = %d\n", size);
	return 0;
}
